<?php
namespace app\index\validate;

use think\Validate;

class UserCollectArticle extends Validate
{
    protected $rule = [
        'identification'      =>  'require',
        'type' =>  'require|number|in:1,2,3,4,5,6,7,8,9',
    ];

    protected $message  =   [
        'identification.require' => 'id表示不能为空',
        'type.require' => '收藏类型不能为空',
        'type.number' => 'type为整数',
        'type.in' => 'type价取值错误',
    ];
}